sidebarrow: Don't focus on click
authorTimm Bäder <mail@baedert.org>
Fri, 17 May 2019 06:42:34 +0000 (08:42 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 18 May 2019 11:47:59 +0000 (13:47 +0200)
This is sometimes important, e.g. when saving in the filechooser. We
don't want to move the focus out of the filename entry in that case.

gtk/gtksidebarrow.c

index 3623b67847adf47b170c2c4e5c8b0199fd0675dc..9b7fedd1ae5510d82dc4b9190aa28674a6433036 100644 (file)
@@ -465,6 +465,8 @@ static void
 gtk_sidebar_row_init (GtkSidebarRow *self)
 {
   gtk_widget_init_template (GTK_WIDGET (self));
+
+  gtk_widget_set_focus_on_click (GTK_WIDGET (self), FALSE);
 }
 
 static void